package cn.itsource.basic.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.util.PageResult;

import java.util.List;

public interface IBaseService<T> {

    //查询所有
    List<T> findAll();
    //查询一条
    T findOne(Long id);
    //添加
    void save(T t);
    //删除
    void remove(Long id);
    //修改
    void update(T t);

    PageResult<T> queryPage(BaseQuery query);

    void removes(List<Long> ids);
}
